<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Quartz 任务编辑</title>
    <link rel="stylesheet" type="text/css" href="/assets/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/admin/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/assets/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/assets/lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/pager.css"/>
</head>
<body>
    <div class="page-container">
        <form action="javascript:;" src="/edit.json" method="post" class="form form-horizontal" id="edit-frm">
            <input type="hidden" name="triggerName" th:value="${job.triggerName}"/>
            <input type="hidden" name="triggerGroup" th:value="${job.triggerGroup}"/>
            <div class="row cl">
                <label class="form-label col-xs-3"><span class="c-red">*</span>Cron表达式：</label>
                <div class="formControls col-xs-8">
                    <input type="text" class="input-text" placeholder="资源名" id="cronExpression" name="cronExpression" th:value="${job.cronExpression}"/>
                </div>
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" />
                </div>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="/assets/js/jquery/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="/assets/js/jquery/jquery-extend.js"></script>
    <script type="text/javascript" src="/assets/js/H-ui.js"></script>
    <script type="text/javascript" src="/assets/lib/layer/3.0.1/layer.js"></script>
    <script type="text/javascript" src="/assets/js/pager.js"></script>
    <script type="text/javascript" src="/assets/js/H-ui.admin.js"></script>

    <script type="text/javascript" src="/assets/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
    <script type="text/javascript" src="/assets/lib/jquery.validation/1.14.0/validate-methods.js"></script>
    <script type="text/javascript" src="/assets/lib/jquery.validation/1.14.0/messages_zh.min.js"></script>

    <script type="text/javascript" src="/assets/js/app.js?timestrmp=$Date.getSystemTime()" charset="utf-8"></script>
    <script type="text/javascript">
        $(function(){
            $("#edit-frm").validate({
                rules:{
                    cronExpression:{
                        required:true
                    }
                },
                onkeyup:false,
                focusCleanup:true,
                success:"valid",
                submitHandler:function(form){
                    quartz.operate.edit(form);
                }
            });
        });
    </script>
</body>
</html>